home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SATAN11.ZIP / MAKEFILE < prev    next >
Text File  |  1995-04-09  |  2KB  |  80 lines

  1. SHELL    = /bin/sh
  2. MAKE    = make
  3. RPCGEN    = rpcgen
  4. #LIBS    = -lsocket -lnsl
  5.  
  6. what:
  7.     @echo "Usage: make system-type. Known types are:"
  8.     @echo "aix osf bsd bsdi dgux irix4 irix5 freebsd hpux9 linux sunos4 sunos5 sysv4"
  9.     @exit 1;
  10.  
  11. aix osf bsd hpux9 sunos4:
  12.     @$(MAKE) all LIBS= XFLAGS="-DAUTH_GID_T=int"
  13.  
  14. ultrix4:
  15.     @$(MAKE) rpcgen all LIBS= XFLAGS="-DAUTH_GID_T=int" \
  16.         RPCGEN="../../bin/rpcgen"
  17.  
  18. bsdi:
  19.     @$(MAKE) all LIBS="-lrpc" XFLAGS="-DAUTH_GID_T=int"
  20.  
  21. freebsd:
  22.     @$(MAKE) all LIBS= XFLAGS="-DAUTH_GID_T=int -DSYS_ERRLIST_DECLARED"
  23.  
  24. linux:
  25.     @echo The LINUX rules are untested and may be wrong
  26.     @set +e; test -f include/netinet/ip.h || {\
  27.         echo Please copy the 44BSD /usr/include/netinet include files; \
  28.         echo files to `pwd`/include/netinet and try again.;\
  29.         exit 1; \
  30.     }
  31.     @$(MAKE) all LIBS= XFLAGS="-I`pwd`/include -DAUTH_GID_T=int"
  32.  
  33. irix4:
  34.     @$(MAKE) all LIBS="-lXm_s -lXt_s -lX11_s -lPW -lc_s -lsun" \
  35.         XFLAGS="-DAUTH_GID_T=int"
  36.  
  37. irix5:
  38.     @$(MAKE) all LIBS= XFLAGS="-DAUTH_GID_T=gid_t"
  39.  
  40. dgux:
  41.     @$(MAKE) all LIBS="-lnsl" XFLAGS="-DAUTH_GID_T=gid_t -DTIRPC"
  42.  
  43. sunos5:
  44.     @$(MAKE) all LIBS="-lsocket -lnsl" XFLAGS="-DAUTH_GID_T=gid_t -DTIRPC"
  45.  
  46. sysv4:
  47.     @$(MAKE) rpcgen all LIBS="-lsocket -lnsl" \
  48.         XFLAGS="-DAUTH_GID_T=gid_t -DTIRPC" \
  49.         RPCGEN="../../bin/rpcgen"
  50.  
  51. rpcgen:
  52.     cd src/rpcgen; $(MAKE) "LIBS=$(LIBS)" "XFLAGS=$(XFLAGS)"
  53.  
  54. all:
  55.     cd src/misc; $(MAKE) "LIBS=$(LIBS)" "XFLAGS=$(XFLAGS)" "RPCGEN=$(RPCGEN)"
  56.     cd src/boot; $(MAKE) "LIBS=$(LIBS)" "XFLAGS=$(XFLAGS)" "RPCGEN=$(RPCGEN)"
  57.     cd src/port_scan; $(MAKE) "LIBS=$(LIBS)" "XFLAGS=$(XFLAGS)"
  58.     cd src/nfs-chk; $(MAKE) "LIBS=$(LIBS)" "XFLAGS=$(XFLAGS)" "RPCGEN=$(RPCGEN)"
  59.     cd src/yp-chk; $(MAKE) "LIBS=$(LIBS)" "XFLAGS=$(XFLAGS)" "RPCGEN=$(RPCGEN)"
  60.     cd src/fping; $(MAKE) "LIBS=$(LIBS)" "CFLAGS=$(XFLAGS)"
  61.  
  62. checksums:
  63.     @find * -type f -print | sort | xargs md5
  64.  
  65. clean: 
  66.     cd src/misc; $(MAKE) clean
  67.     cd src/boot; $(MAKE) clean
  68.     cd src/port_scan; $(MAKE) clean
  69.     cd src/nfs-chk; $(MAKE) clean
  70.     cd src/yp-chk; $(MAKE) clean
  71.     cd src/fping; $(MAKE) clean
  72.     cd src/rpcgen; $(MAKE) clean
  73.     rm -f html/satan.html html/satan_documentation.html status_file \
  74.     bit_bucket
  75.  
  76. tidy:    clean
  77.     rm -f *.old *.bak *.orig */*.old */*.bak */*.orig tmp_file*
  78.     rm -rf results
  79.     chmod -x satan
  80.